/*
 * @Author: wangzhichiao<https://github.com/wzc570738205>
 * @Date: 2020-03-27 13:46:30
 * @LastEditors: wangzhichiao<https://github.com/wzc570738205>
 * @LastEditTime: 2020-04-08 17:48:02
 */
import request from "@/utils/request";
/**数据服务服务 */
var dataServe = {
  /**
   * @description: 下载排行
   * @param {type}
   * @return:
   */
  getDownOrder() {
    return request({
      url: "/DoorManagement/contents/getDownOrder",
      method: "get",
      params: {},
    });
  },
  /**
   * @description: 数据服务分页条件查询
   * @param {type}
   * @return:
   */
  searchTasksData(param) {
    return request({
      url: "/DoorManagement/task/searchTasksData",
      method: "post",
      data: param,
    });
  },
  /**
   * @description: 根据服务id查询服务详情
   * @param {type}
   * @return:
   */
  getTasksById(param) {
    return request({
      url: "/DoorManagement/task/getTasksById",
      method: "post",
      params: param,
    });
  },
  /**
   * @description: 关键词
   * @param {type}
   * @return:
   */
  getActivityData() {
    return request({
      url: "/DoorManagement/subject/getActivityData",
      method: "get",
      params: {},
    });
  },
  /**
   * @description: 取消收藏
   * @param {type}
   * @return:
   */
  canceTaskCollection(param) {
    return request({
      url: "/DoorManagement/collection/canceTaskCollection",
      method: "post",
      params: param
    });
  },
  /**
   * @description: 收藏
   * @param {type}
   * @return:
   */
  confirmTaskCollection(param) {
    return request({
      url: "/DoorManagement/collection/confirmTaskCollection",
      method: "post",
      params: param
    });
  },
  /**
   * @description: 判断目录是否被收藏
   * @param {type}
   * @return:
   */
  isTaskCollection(param) {
    return request({
      url: "/DoorManagement/collection/isTaskCollection",
      method: "post",
      params: param
    });
  },
  /**
   * @description: 服务质量
   * @param {type}
   * @return:
   */
  getTaskQuality(param) {
    return request({
      url: "/DoorManagement/interfaceUsage/getTaskQuality",
      method: "post",
      params: param
    });
  },
  /**
   * @description: 订阅
   * @param {type}
   * @return:
   */
  confirmTaskSubscribe(param) {
    return request({
      url: "/DoorManagement/subscribe/confirmTaskSubscribe",
      method: "post",
      data: param
    });
  },
  /**
   * @description: sf订阅
   * @param {type}
   * @return:
   */
  isTaskSubscribe(param) {
    return request({
      url: "/DoorManagement/subscribe/isTaskSubscribe",
      method: "post",
      params: param
    });
  }
};
export { dataServe };
